import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: TextButton(
        child: Text('搜索'),
        onPressed: (){
          Navigator.pushNamed(context, '/search');
        },),
    );
  }
}
